package com.aliyun.flashsale.portal.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 应用配置
 *
 * 
 * @date 2024/11/27
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "appconfig")
public class AppConfig {

    /**
     * 默认用户购买数量
     */
    private Integer defaultUserPurchaseQuantity;

    /**
     * 默认秒杀商品 ID
     */
    private Long defaultFlashSaleProductId;

    /**
     * 默认用户 ID
     */
    private Long defaultUserId;
}